package com.itheima.domain;

import java.io.Serializable;
import java.util.List;

/**
 * 角色的实体类
 */
public class Role implements Serializable {

    private Integer id;
    private String name;
    private String description;

    private List<Permission> permissions;
    private List<Integer> permissionIds;

    public Integer getId() {
        return id;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public List<Integer> getPermissionIds() {
        return permissionIds;
    }

    public void setPermissionIds(List<Integer> permissionIds) {
        this.permissionIds = permissionIds;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
